/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Inheritance;

/**
 *
 * @author novaldebbyp
 */
public class Main {
    public static void main(String[] args){
        System.out.println("Nama : Noval Debby Prasetyono");
        System.out.println("NRP : 2103137032\n");
        
        Animal animal = new Animal();
        Bird bird = new Bird();
        Dog dog = new Dog();
        
        System.out.println("");
        
        animal.sleep();
        animal.eat();
        
        bird.sleep();
        bird.eat();
        
        dog.sleep();
        dog.eat();
    }
}
